import { useState } from 'react';
function useToolFns() {
    const [isFullScreen, setIsFullScreen] = useState(false);
    const [toolFns, setToolFns] = useState({
        fullscreen: () => {
            setIsFullScreen(v => !v);
        },
        download: (v) => {
            let file = v?.attachmentFiles?.[0] || {}
            file?.downloadUrl && window.open(file.downloadUrl);
        }
    });
    return { toolFns, setToolFns, isFullScreen };
}
export default useToolFns;